#include <iostream>
using namespace std;

class LessThan
{
public:
    LessThan(int val) : _val(val) {}
    int comp_val() const {return _val;}
    void comp_val(int nval) {_val = nval;}

    bool operator()(int value) const;

private:
    int _val;
};

inline bool LessThan::operator()(int value) const {return value < _val;}

int main()
{
    LessThan lt10(10);

    cout << lt10(5) << endl;
    cout << lt10(15) << endl;

    return 0;
}
